<template>
	<view>
		<u-tabbar
			:zIndex='1111'
			:value="value"
			@change="changetabbar"
			:fixed="true"
			:placeholder="true"
			:safeAreaInsetBottom="true"
		>
			<u-tabbar-item text="课程" icon="photo" ></u-tabbar-item>
			<u-tabbar-item text="数据" icon="photo" ></u-tabbar-item>
			<u-tabbar-item text="我的" icon="account" ></u-tabbar-item>
		</u-tabbar>
	</view>
</template>

<script>
	export default {
		name:"parentstabbar",
		props:{
			value:{
				type:Number,
				default:0,
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			changetabbar(e){
				 if(e==0){
					 uni.redirectTo({
					 	url:'/expert/index/index'
					 })
				 }else if(e==1){
					 uni.redirectTo({
					 	url:'/expert/expertdata/expertdata'
					 })
				 }else{
					 uni.redirectTo({
					 	url:'/expert/my/my'
					 })
				 }
				console.log(e);
			},
		}
	}
</script>

<style>

</style>